<template>
  <div class="zm-body" :style="{'background-color':backgroundColor}">
    <slot />
  </div>
</template>

<script>
/*
  功能描述  body
  创建人    zgf
  更新时间  2019/06/04
  备注      
*/
export default {
  name: "ZmBody",
  props: {
    //是否显示返回顶部按钮
    showScrollToTop: {
      type:Boolean,
      default:true
    },
    //背景色
    backgroundColor:{
      type:String,
      default:'rgba(0,0,0,0)'
    },
  },
  data(){
    return {
    }
  },
  mounted(){
  },
  methods:{
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style  lang="less">
@import "../../css/var.less";
@import "../../css/mixin.less";
.zm-body{
  position: absolute;
  z-index: 2;
  width: 100%;
  top: 4.65rem;
  left: 0;
  bottom: 0;
  right: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling:touch;
}
</style>
